package com.wuzheng.wisgo.sanitation.cloud.service.transfer.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.wuzheng.wisgo.sanitation.cloud.repository.entity.transfer.TransferRouteTrash;
import com.wuzheng.wisgo.sanitation.cloud.service.transfer.TransferRouteTrashService;
import com.wuzheng.wisgo.sanitation.framework.base.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author：hoipang
 * @date：Created in 2019-12-06
 * @description：转运路线与垃圾桶关系服务实现类
 * @modified By：
 * @version: 1.0
 */
@Service
public class TransferRouteTrashServiceImpl extends BaseServiceImpl<TransferRouteTrash> implements TransferRouteTrashService {


    @Override
    public List<TransferRouteTrash> selectList(List<String> facilityIds) {
        EntityWrapper<TransferRouteTrash> wrapper = new EntityWrapper<>();
        wrapper.in("trash_id", facilityIds);
        wrapper.eq("de_flag",false);
        List<TransferRouteTrash> list = this.selectList(wrapper);
        return list;
    }
}
